<!--Copyright (C) Kherty.  All rights reserved.-->
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                        xmlns:oui="clr-namespace:OpenLS.UI"
    x:Class="OpenLS.UI.BoxResources"

    >
  <Style TargetType="{x:Type oui:Box}" x:Key="{x:Static oui:Styles.BoxStyleKey}">
    <Setter Property="Background" Value="{DynamicResource {x:Static oui:OfficeBrushes.BoxBackgroundKey}}"/>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type oui:Box}">
          <Border BorderThickness="1" BorderBrush="{DynamicResource {x:Static oui:OfficeBrushes.BoxBorderBrushKey}}" CornerRadius="2" Background ="{TemplateBinding Background}">
            <ItemsPresenter />
          </Border>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="ItemsPanel">
      <Setter.Value>
        <ItemsPanelTemplate>
          <StackPanel Orientation="Horizontal"/>
        </ItemsPanelTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="VerticalAlignment" Value="Top"/>
    <Setter Property="Height" Value="22"/>
  </Style>
</ResourceDictionary>